<?php
/**
 * This class is a test engine used for unit testing
 *
 * @author Rob Young <rob@roryoung.co.uk>
 * @package forage.engine.test
 */
class ForageTestEngine extends ForageEngine implements ForageEngineSearchable, ForageEngineModifiable
{
  public function initialize($dsn, $config)
  {
  }

  public function search($query)
  {
    return $query;
  }

  public function add(ForageDocument $document)
  {
    return $document;
  }

  public function flush()
  {
  }

  public function optimize()
  {
  }

  public function remove(ForageDocument $document)
  {
  }
}
